﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreCms.Net.Model.ViewModels.DTO
{
    /// <summary>
    /// 新的sku返回接口对象
    /// </summary>
    public class CoreCmsProductsView
    {
        /// <summary>
        /// 产品编号
        /// </summary>
        public string _id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 缩略图
        /// </summary>
        public string goods_thumb { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string sn { get; set; }

        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 成本价
        /// </summary>
        public decimal costprice { get; set; }
        /// <summary>
        /// 市场价
        /// </summary>
        public decimal mktprice { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int stock { get; set; }
        /// <summary>
        /// 冻结库存
        /// </summary>
        public int freezeStock { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public int weight { get; set; }
        /// <summary>
        /// 拼团数量
        /// </summary>
        public int buyPinTuanCount { get; set; }
        /// <summary>
        /// 促销数量
        /// </summary>
        public int buyPromotionCount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Product_Sku_listItem> sku_list { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Product_Spec_listItem> spec_list { get; set; }
    }

    public class Product_Sku_listItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string _id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string goods_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string goods_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string image { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal price { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> sku_name_arr { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public decimal stock { get; set; }
    }

    public class Product_Sku_list
    {
        /// <summary>
        /// 红色
        /// </summary>
        public string name { get; set; }
    }

    public class Product_Spec_listItem
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Product_Sku_list> list { get; set; }
        /// <summary>
        /// 颜色
        /// </summary>
        public string name { get; set; }
    }

}
